//    Copyright (C) Kherty.  All rights reserved.
using System.Reflection;
using System.Windows;

namespace OpenLS.Chart.UI
{
    public static class ChartComponents
    {
        public static ResourceKey DesignTabKey { get { return new ChartComponentKey(ChartComponentId.DesignTab); } }
    }
    class ChartComponentKey: ResourceKey
    {
        public ChartComponentKey(ChartComponentId id)
        {
            this.Id = id;
        }
        ChartComponentId Id;
        public override Assembly Assembly
        {
            get { return GetType().Assembly; }
        }
        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }
        public override bool Equals(object obj)
        {
            ChartComponentKey other = obj as ChartComponentKey;
            if (other == null)
                return false;
            return other.Id == Id;
        }
    }
    enum ChartComponentId
    {
        DesignTab,
    }
}
